﻿using KingsSharp.Core.Data.Entity.Migrations;
using CRM.Admin.Contracts.Model.Sys;
using System;
using System.Collections.Generic;
using System.Data.Entity;

namespace CRM.Admin.Services.Seeds
{
    public class UserInfoSeedAction : ISeedAction
    {
        public int Order
        {
            get
            {
                return 2;
            }
        }

        public void Action(DbContext context)
        {
            UserInfo entity = new UserInfo()
            {
                Name="系统管理",
                Id=Guid.NewGuid(),
                Age=99,
                LoginCode="admin",
                Password= "+Lh5pC/2rgU="
            };
            context.Set<UserInfo>().Add(entity);
        }
    }
}
